package com.atguigu.headline.tests;


import com.atguigu.headline.util.JwtHelper;
import org.junit.Test;

public class TestJwtHelper {

    @Test
    public void testCreateToken()
    {
        String token = JwtHelper.createToken(1L);
        System.out.println(token);

        Long userId = JwtHelper.getUserId(token);
        System.out.println(userId);

        System.out.println(JwtHelper.isExpiration(token));;
    }
}
